home *** CD-ROM | disk | FTP | other *** search
/ Linux Cubed Series 3: Developer Tools / Linux Cubed Series 3 - Developer Tools.iso / devel / make / icmake-6.000 / icmake-6 / icmake / exec / funjmpf.c < prev    next >
Encoding:
C/C++ Source or Header  |  1994-02-08  |  689 b   |  30 lines

  1. /*
  2. \funcref{fun\_jmp\_false}{void fun\_jmp\_false ()}
  3.     {}
  4.     {}
  5.     {getint16(), istrue()}
  6.     {fun\_jmp\_true(), fun\_jmp()}
  7.     {funjmpf.c}
  8.     {
  9.  
  10.         This function is executed when an {\em op\_jmp\_false} opcode is read
  11.         in the binary makefile. Following the opcode, an {\em INT16} offset is
  12.         expected. The result of a previous expression is popped and if this
  13.         yields zero, a jump is made relative to the current offset by
  14.         repositioning the file pointer.
  15.  
  16.     }
  17. */
  18.  
  19. #include "icm-exec.h"
  20.  
  21. void fun_jmp_false ()
  22. {
  23.     register INT16
  24.         offs;
  25.  
  26.     offs = getint16 (infile);
  27.     if (! istrue ())
  28.         fseek (infile, (INT32) offs, SEEK_CUR);
  29. }
  30.